<?php include('_tpl_header.php'); ?>
<div class="box">
<div class="left">
<div class="leftad">
  <?php include('_tpl_left_menu.php'); ?>
</div>
</div>
<div class="right">
  <div><img src="/data/images/righttop01.gif" width="724" height="18" /></div>
  <div class="box2">
  <?php
$n = count($products);
if($n > 0)
{ 
    $i = 0;
    $products = array_pad($products , $n+(3-($n%3)) , array());
    foreach ($products as $row){ 
        if(!empty($row)){ 
?>
    <div class="box3">
      <ul>
        <li style="height:210px;vertical-align:middles;"><table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%"><tr><td valign="middle" align="center" style="margin:0 auto"><a href="<?php echo $row['product_url']; ?>"><img src="<?php echo $row['cover_url'] ?>" /></a></td></tr></table></li>
        <li class="box3bottom"><a href="<?php echo $row['product_url']; ?>" class="white2"><?php echo $row['sn'] ?>&nbsp;&nbsp;&nbsp;(<?php echo $row['width']."*".$row['deep']."*".$row['height'] ?>)</a>&nbsp;&nbsp;&nbsp;<?php if($row['stat'] == K_COMMON_YES){ ?><a href="javascript:return false;" class="aOrder" sn="<?php echo $row['sn']; ?>"><?php echo $L['pPlistOrder']; ?></a><?php } else if ($row['stat']==K_COMMON_LOCK){ ?><font color="#BCBCBC"><?php echo $L['pPlistSellout'];?></font><?php } ?></li>
      </ul>
    </div>
<?php
        }else {
?>
    <div></div>
<?php
        }
        $i++;
        if($i!=0 && $i%3==0){
?>
        <div class="clear"></div>
<?php
        }
    }
?>
<div align="center" class="red2" style="font-size:16px;">
</div>
<?php
}
else 
{
    echo $L['none'];
}
?>
  </div>
  <div><img src="/data/images/rightbottom01.gif" width="724" height="13" /></div>
</div>
<div class="clear"></div>
<div><img src="/data/images/bottom.gif" width="1001" height="19" /></div>
</div>
<?php include('_tpl_footer.php'); ?>